package com.etime.shycourse.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.etime.shycourse.dto.OrgTeacherDtoS;
import com.etime.shycourse.dto.OrganizationDto;
import com.etime.shycourse.pojo.Organization;
import org.springframework.stereotype.Repository;

/**
 * @author wb
 * @since 2021-12-14
 */
@Repository
public interface OrganizationMapper extends BaseMapper<Organization> {
    /**
     * 查询机构信息
     * <p>
     * 根据机构 Id
     *
     * @return Organization
     */
    OrganizationDto selectByIds(Integer orgId);
    /**
     * 机构管理 分页管理
     * 条件：1、机构名
     *
     * @param organ
     * @return Page<OrgTeacherDtoS>
     */
    Page<OrgTeacherDtoS> selectOrganizationPage(Page<OrgTeacherDtoS> page, Organization organ);
}
